HTMLify
style.css
Views: 16 | Author: cody
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 | * { margin: 0; padding: 0; box-sizing: border-box; } .container { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: #eaeef0; } .loader { position: relative; display: flex; } .loader span { position: relative; width: 250px; height: 250px; background-color: #eaeef0; border: 6px solid #eaeef0; border-radius: 50%; box-shadow: -8px -8px 15px rgba(255, 255, 255, 1), 8px 8px 25px rgba(255, 255, 255, 0.2); overflow: hidden; } .loader span::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 10px 10px 20px rgba(0, 0, 0, 0.5), inset -5px -5px 15px rgba(255, 255, 255, 1); } .loader span::after { content: ""; position: absolute; inset: 40px; background: #eaeef0; border: 3px solid #eaeef0; border-radius: 50%; box-shadow: -8px -8px 25px rgba(255, 255, 255, 1), 8px 8px 25px rgba(0, 0, 0, 0.25), inset 3px 3px 10px rgba(0, 0, 0, 0.15), inset -1px -1px 15px rgba(255, 255, 255, 1); } .loader span i { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(#42abff, #ff4f8b, #ffeb3b); animation: animateLoader 1s linear infinite; } @keyframes animateLoader { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .rocket { position: absolute; inset: 50px; z-index: 10; border-radius: 50%; display: flex; justify-content: center; align-content: center; overflow: hidden; } .rocket .fa-rocket { position: absolute; top: 35%; color: #ff518c; font-size: 3.5em; -webkit-text-stroke: 2px #000; animation: animateRocket 0.2s linear infinite; } @keyframes animateRocket { 0%,100% { transform: translate(0,0) rotate(-45deg); } 50% { transform: translate(0,3px) rotate(-45deg); } } .rocket .fa-cloud { position: absolute; top: calc(45px * var(--i)); left: calc(40px * var(--i)); font-size: 2em; color: #fff; -webkit-text-stroke: 2px #000; animation: animateCloud 1.5s linear infinite; animation-delay: calc(-0.5s * var(--i)); } @keyframes animateCloud { 0% { transform: translateY(calc(-35 * 5px)); } 100% { transform: translateY(calc(35 * 5px)); } } |